package com.example.databasepj.mapper;

import com.example.databasepj.dtoAdvanced.UserStarAnalysisResponse;
import com.example.databasepj.entity.UserStarDishEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserStarDishMapper {
    int insertStarDish(UserStarDishEntity userStarDishEntity);
    UserStarDishEntity selectByUserAndDish(int user_ID, int dish_ID);
    void deleteUserStarDish(UserStarDishEntity entity);
    Integer countStarNumByDishId(int dishID);
    List<UserStarAnalysisResponse> selectDishByYear(int userID);
    List<UserStarAnalysisResponse> selectDishByWeek(int userID);
    List<UserStarAnalysisResponse> selectDishByMonth(int userID);
    List<UserStarAnalysisResponse> selectDishByYearAndForm(int userID,int order_form);
    List<UserStarAnalysisResponse> selectDishByWeekAndForm(int userID,int order_form);
    List<UserStarAnalysisResponse> selectDishByMonthAndForm(int userID,int order_form);


}
